package com.zmzncs.lmtc.common.pojo.enums;

public enum ServiceCode {
    SUCCESS(0,"成功"),
    FAILD(1000,"失败"),
    NOT_LOGIN(1001,"没有登录或登录已失效"),
    NOT_EXIST(1002,"账号不存在或密码输入有误"),
    PARAMS_NOT_EXIST(2000,"参数缺失,请检查请求参数!"),
    FILE_NOT_EXIST(2001,"未找到图片,请检查图片信息!"),
    URL_NOT_EXIST(4001,"接口地址不存在"),
    SERVICE_UNAVAILABLE(5000,"系统内部错误"),
    PARAMS_ERROR(7000,"参数有误"),
    REQUEST_FREQUENT(8000,"您请求的太频繁啦！请稍后再试"),
    ;

    private int status;

    private String msg;

    ServiceCode(int status, String msg){
        this.status = status;
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }
}
